package com.larsgard.gedviewer.client.service.callback;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.larsgard.gedviewer.client.event.EventBus;
import com.larsgard.gedviewer.client.event.ProcessGedFileFinishedEvent;
import com.larsgard.gedviewer.shared.ProcessResult;

public class ProcessGedFileCallback implements AsyncCallback<ProcessResult> {

    @Override
    public void onFailure(Throwable caught) {
    }

    @Override
    public void onSuccess(ProcessResult result) {
	ProcessGedFileFinishedEvent event = new ProcessGedFileFinishedEvent();
	event.setResult(result);
	EventBus.getInstance().fireEvent(event);
    }

}
